from google.appengine.ext import webapp
from google.appengine.ext import db

class DeleteModule(webapp.RequestHandler):

    def post(self):
        order_number = self.request.get("order_number", "")
        if order_number <> "":
            order_datas = db.GqlQuery("select * from OrderData where order_number = :1", 
                                       order_number);

            for order_data in order_datas:
                order_data.delete()
            
        self.redirect("/")
